package com.atguigu.cloud;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import tk.mybatis.spring.annotation.MapperScan;

/**
 * @Author: huahua
 * @Date: 2024/6/2 0002
 * @Time: 5:00
 * @Description:
 */
@SpringBootApplication
@MapperScan("com.atguigu.cloud.mapper") //导入的依赖为tk.mybatis.spring.annotation.MapperScan
@EnableDiscoveryClient //consul服务配置
@RefreshScope //consul配置文件动态刷新
public class Main8002 {
    public static void main(String[] args) {
        SpringApplication.run(Main8002.class, args);
    }
}